package com.his.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.his.dao.domain.dto.ListDto;
import com.his.dao.domain.dto.LoginDto;
import com.his.dao.domain.entity.User;
import com.his.util.result.RestResult;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Fall
 */
public interface UserService extends IService<User> {
    /**
     * 登录
     * @param request
     * @param user
     * @return
     */
    RestResult login(HttpServletRequest request, User user);

    /**
     * 登出
     * @param authorization
     * @return
     */
    RestResult logon(String authorization);

    /**
     * 用户信息
     * @param authorization
     * @return
     */
    RestResult userInfo(String authorization);

    RestResult all(String authorization, ListDto listDto);

    /**
     * 查询所有用户id通过role id
     * @param user
     * @return
     */
    RestResult allId(User user);

    RestResult allScheduleId(User user);
}